import { BasicFetchResult, SaaSPageParams } from '/@/api/model/baseModel';

export type SaaSCommodityParams = {
  id: string;
  commodityName: string;
};

export type SaaSCommodityPageParams = {
  model: SaaSCommodityParams;
} & SaaSPageParams;

export interface SaaSCommodityListItem {
  id: string;
  commodityName: string;
  description: string;
  price: number;
  status: number;
  lastUpdateTime: string;
}

export type SaaSCommodityForm = {
  create: boolean;
  tenantId: string;
  id?: string;
  commodityName: string;
  price: number;
  status: number;
};

export interface CommodityListItem {
  commodityId: number; //商品编号
  commodityName: string; //商品名称
  commodityPrice: number; //商品单价
  modifyTime: string; //上次修改时间
  commodityStatus: string; //商品状态
}

export type CommodityListGetResultModel = BasicFetchResult<CommodityListItem>;

export type PhotoParam = {
  productId: string;
};

export type UploadFileParam = {
  productId: string;
  files: File;
};
